<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: Service类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pro-static-methods">静态 Protected 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="class_service-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">Service类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>服务基类  
 <a href="class_service.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_service_8h_source.html">Service.h</a>&gt;</code></p>
<div class="dynheader">
类 Service 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_service.png" usemap="#Service_map" alt=""/>
  <map id="Service_map" name="Service_map">
<area href="class_client_server.html" alt="ClientServer" shape="rect" coords="0,56,83,80"/>
<area href="class_server.html" alt="Server" shape="rect" coords="93,56,176,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_service_1_1_delete_function.html">DeleteFunction</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ae3887d7d725c94f207a479a10cce30bd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#ae3887d7d725c94f207a479a10cce30bd">Service</a> ()</td></tr>
<tr class="separator:ae3887d7d725c94f207a479a10cce30bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6c3577b59652ac817d1d76aaccee904"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#af6c3577b59652ac817d1d76aaccee904">~Service</a> ()</td></tr>
<tr class="separator:af6c3577b59652ac817d1d76aaccee904"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d41738423a6eafacc44af90ca6c6ef7"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a2d41738423a6eafacc44af90ca6c6ef7">Init</a> (const <a class="el" href="class_tcp_config.html">TcpConfig</a> &amp;c)=0</td></tr>
<tr class="memdesc:a2d41738423a6eafacc44af90ca6c6ef7"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化工作  <a href="class_service.html#a2d41738423a6eafacc44af90ca6c6ef7">更多...</a><br /></td></tr>
<tr class="separator:a2d41738423a6eafacc44af90ca6c6ef7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f9f9d3c3033b32ce108509093a7ff08"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a7f9f9d3c3033b32ce108509093a7ff08">PostConnect</a> (void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>, const char *addr=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>, <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> port=0)=0</td></tr>
<tr class="memdesc:a7f9f9d3c3033b32ce108509093a7ff08"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递连接、接收请求  <a href="class_service.html#a7f9f9d3c3033b32ce108509093a7ff08">更多...</a><br /></td></tr>
<tr class="separator:a7f9f9d3c3033b32ce108509093a7ff08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad0c7b096b5dc39a0a763997f045c2d5"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#aad0c7b096b5dc39a0a763997f045c2d5">Run</a> ()=0</td></tr>
<tr class="separator:aad0c7b096b5dc39a0a763997f045c2d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a632a3bcb74f8fc331d37e55c50951d83"><td class="memItemLeft" align="right" valign="top">virtual const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a632a3bcb74f8fc331d37e55c50951d83">GetName</a> () const =0</td></tr>
<tr class="memdesc:a632a3bcb74f8fc331d37e55c50951d83"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回客户端名称  <a href="class_service.html#a632a3bcb74f8fc331d37e55c50951d83">更多...</a><br /></td></tr>
<tr class="separator:a632a3bcb74f8fc331d37e55c50951d83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24501c6a89af8f6781ef96b423644780"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a24501c6a89af8f6781ef96b423644780">Post</a> (<a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>(*complete)(void *), void *invoker)=0</td></tr>
<tr class="memdesc:a24501c6a89af8f6781ef96b423644780"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个用户操作  <a href="class_service.html#a24501c6a89af8f6781ef96b423644780">更多...</a><br /></td></tr>
<tr class="separator:a24501c6a89af8f6781ef96b423644780"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05c507629c3614ccbe433ea89fd0f985"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a05c507629c3614ccbe433ea89fd0f985">IsServer</a> () const</td></tr>
<tr class="memdesc:a05c507629c3614ccbe433ea89fd0f985"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回是否为服务端的标志  <a href="class_service.html#a05c507629c3614ccbe433ea89fd0f985">更多...</a><br /></td></tr>
<tr class="separator:a05c507629c3614ccbe433ea89fd0f985"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94ef51dae18339e99ea55a67c3b00451"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a94ef51dae18339e99ea55a67c3b00451">IsExistClient</a> (const std::string &amp;iden) const</td></tr>
<tr class="memdesc:a94ef51dae18339e99ea55a67c3b00451"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过id, 查找客户端是否存在  <a href="class_service.html#a94ef51dae18339e99ea55a67c3b00451">更多...</a><br /></td></tr>
<tr class="separator:a94ef51dae18339e99ea55a67c3b00451"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87a64eeb17b61e794c1651d2de93f49b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a87a64eeb17b61e794c1651d2de93f49b">IsServiceFlag</a> (const std::string &amp;iden) const</td></tr>
<tr class="memdesc:a87a64eeb17b61e794c1651d2de93f49b"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过客户端标志判断服务标志是否为此服务  <a href="class_service.html#a87a64eeb17b61e794c1651d2de93f49b">更多...</a><br /></td></tr>
<tr class="separator:a87a64eeb17b61e794c1651d2de93f49b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4f45cb83a28907849da7897f7a30016"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#ab4f45cb83a28907849da7897f7a30016">GetSize</a> () const</td></tr>
<tr class="memdesc:ab4f45cb83a28907849da7897f7a30016"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取客户端大小  <a href="class_service.html#ab4f45cb83a28907849da7897f7a30016">更多...</a><br /></td></tr>
<tr class="separator:ab4f45cb83a28907849da7897f7a30016"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aede679dc4ce20dbe8fc56d9998727ef5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#aede679dc4ce20dbe8fc56d9998727ef5">SetServiceFlag</a> (const std::string &amp;flag)</td></tr>
<tr class="memdesc:aede679dc4ce20dbe8fc56d9998727ef5"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置服务标志,只能为数字或者字母  <a href="class_service.html#aede679dc4ce20dbe8fc56d9998727ef5">更多...</a><br /></td></tr>
<tr class="separator:aede679dc4ce20dbe8fc56d9998727ef5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae091318f2a5a2708d1631670e8bce6c0"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#ae091318f2a5a2708d1631670e8bce6c0">GetServiceFlag</a> () const</td></tr>
<tr class="memdesc:ae091318f2a5a2708d1631670e8bce6c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取服务标志  <a href="class_service.html#ae091318f2a5a2708d1631670e8bce6c0">更多...</a><br /></td></tr>
<tr class="separator:ae091318f2a5a2708d1631670e8bce6c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a040c5f1db96aad100bb713db069bc19e"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a040c5f1db96aad100bb713db069bc19e">GetClientIden</a> (<a class="el" href="class_client.html">Client</a> *c) const</td></tr>
<tr class="memdesc:a040c5f1db96aad100bb713db069bc19e"><td class="mdescLeft">&#160;</td><td class="mdescRight">生成客户端标志  <a href="class_service.html#a040c5f1db96aad100bb713db069bc19e">更多...</a><br /></td></tr>
<tr class="separator:a040c5f1db96aad100bb713db069bc19e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ea329d8d3607adcd3e03a94a0585217"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_c_basic_service.html">CBasicService</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a9ea329d8d3607adcd3e03a94a0585217">GetTcpService</a> () const =0</td></tr>
<tr class="memdesc:a9ea329d8d3607adcd3e03a94a0585217"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取tcp底层类指针  <a href="class_service.html#a9ea329d8d3607adcd3e03a94a0585217">更多...</a><br /></td></tr>
<tr class="separator:a9ea329d8d3607adcd3e03a94a0585217"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7f2c04b1f26bcb86e59beb2f7dcbeed"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#ae7f2c04b1f26bcb86e59beb2f7dcbeed">NotifyExit</a> ()=0</td></tr>
<tr class="memdesc:ae7f2c04b1f26bcb86e59beb2f7dcbeed"><td class="mdescLeft">&#160;</td><td class="mdescRight">通知退出  <a href="class_service.html#ae7f2c04b1f26bcb86e59beb2f7dcbeed">更多...</a><br /></td></tr>
<tr class="separator:ae7f2c04b1f26bcb86e59beb2f7dcbeed"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:aceb078ac7bb78b45f21e0a3d2bf79735"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#aceb078ac7bb78b45f21e0a3d2bf79735">AddClient</a> (const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_client.html">Client</a> &gt; &amp;c)</td></tr>
<tr class="memdesc:aceb078ac7bb78b45f21e0a3d2bf79735"><td class="mdescLeft">&#160;</td><td class="mdescRight">增加客户端  <a href="class_service.html#aceb078ac7bb78b45f21e0a3d2bf79735">更多...</a><br /></td></tr>
<tr class="separator:aceb078ac7bb78b45f21e0a3d2bf79735"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3cac6e8d20e95f043d56d83e3ddd33bc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a3cac6e8d20e95f043d56d83e3ddd33bc">DeleteClient</a> (<a class="el" href="_sock_tools_8h.html#ac7875a7f6984241a06892f7041b4d30a">SOCKIDEN</a> id)</td></tr>
<tr class="memdesc:a3cac6e8d20e95f043d56d83e3ddd33bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">删除客户端  <a href="class_service.html#a3cac6e8d20e95f043d56d83e3ddd33bc">更多...</a><br /></td></tr>
<tr class="separator:a3cac6e8d20e95f043d56d83e3ddd33bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f2080b05bc4a1a5642b7fba69d7f0d2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a1f2080b05bc4a1a5642b7fba69d7f0d2">PopClient</a> (<a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_client.html">Client</a> &gt; &amp;c)</td></tr>
<tr class="memdesc:a1f2080b05bc4a1a5642b7fba69d7f0d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取一个客户端  <a href="class_service.html#a1f2080b05bc4a1a5642b7fba69d7f0d2">更多...</a><br /></td></tr>
<tr class="separator:a1f2080b05bc4a1a5642b7fba69d7f0d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26b720587403b9fe88c7b122ebab3553"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a26b720587403b9fe88c7b122ebab3553">Clear</a> ()</td></tr>
<tr class="memdesc:a26b720587403b9fe88c7b122ebab3553"><td class="mdescLeft">&#160;</td><td class="mdescRight">清空所有客户端  <a href="class_service.html#a26b720587403b9fe88c7b122ebab3553">更多...</a><br /></td></tr>
<tr class="separator:a26b720587403b9fe88c7b122ebab3553"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acad19cb7557fac6e504af4fb5c734d4e"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#acad19cb7557fac6e504af4fb5c734d4e">DealConnect</a> (<a class="el" href="class_client.html">Client</a> *c, const char *msg, void *invoker)=0</td></tr>
<tr class="memdesc:acad19cb7557fac6e504af4fb5c734d4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理连接  <a href="class_service.html#acad19cb7557fac6e504af4fb5c734d4e">更多...</a><br /></td></tr>
<tr class="separator:acad19cb7557fac6e504af4fb5c734d4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a7a13a861535967242b96661e0b75ba"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a3a7a13a861535967242b96661e0b75ba">SetSocketOpt</a> (<a class="el" href="class_c_tcp_io_socket.html">CTcpIoSocket</a> *s)=0</td></tr>
<tr class="memdesc:a3a7a13a861535967242b96661e0b75ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置套接口选项,若为服务端则设置监听套接字的选项，若为客户端则设置客户端的套接字选项  <a href="class_service.html#a3a7a13a861535967242b96661e0b75ba">更多...</a><br /></td></tr>
<tr class="separator:a3a7a13a861535967242b96661e0b75ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36e6b17fa4ed3d5582a4d5bc8e6da4f4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a36e6b17fa4ed3d5582a4d5bc8e6da4f4">DeleteClient</a> (void *invoker)</td></tr>
<tr class="separator:a36e6b17fa4ed3d5582a4d5bc8e6da4f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-static-methods"></a>
静态 Protected 成员函数</h2></td></tr>
<tr class="memitem:a46eb93cf78fbfeed368634a90d9775d9"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a46eb93cf78fbfeed368634a90d9775d9">DeleteNullClient</a> (<a class="el" href="class_client.html">Client</a> *c)</td></tr>
<tr class="separator:a46eb93cf78fbfeed368634a90d9775d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a307f7bf977f0a39c8675fb42bc204e36"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_string_imp_8h.html#a2024a29cf6ecb0ef87f0bc2ef277a7e9">StringImp</a>&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a307f7bf977f0a39c8675fb42bc204e36">_serviceFlag</a></td></tr>
<tr class="memdesc:a307f7bf977f0a39c8675fb42bc204e36"><td class="mdescLeft">&#160;</td><td class="mdescRight">服务前缀标志  <a href="class_service.html#a307f7bf977f0a39c8675fb42bc204e36">更多...</a><br /></td></tr>
<tr class="separator:a307f7bf977f0a39c8675fb42bc204e36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac215518825547a80c089e9166d4f5e72"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_tcp_config.html">TcpConfig</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#ac215518825547a80c089e9166d4f5e72">_config</a></td></tr>
<tr class="memdesc:ac215518825547a80c089e9166d4f5e72"><td class="mdescLeft">&#160;</td><td class="mdescRight">配置文件  <a href="class_service.html#ac215518825547a80c089e9166d4f5e72">更多...</a><br /></td></tr>
<tr class="separator:ac215518825547a80c089e9166d4f5e72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5155a095380842a32c022fe9c9854ffd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_safe_map.html">CSafeMap</a>&lt; <a class="el" href="_sock_tools_8h.html#ac7875a7f6984241a06892f7041b4d30a">SOCKIDEN</a>, <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_client.html">Client</a> &gt; &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a5155a095380842a32c022fe9c9854ffd">_mgr</a></td></tr>
<tr class="memdesc:a5155a095380842a32c022fe9c9854ffd"><td class="mdescLeft">&#160;</td><td class="mdescRight">客户端管理  <a href="class_service.html#a5155a095380842a32c022fe9c9854ffd">更多...</a><br /></td></tr>
<tr class="separator:a5155a095380842a32c022fe9c9854ffd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83c9735b06c1d6bd177cb0b8d04ce038"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a83c9735b06c1d6bd177cb0b8d04ce038">_isServer</a></td></tr>
<tr class="memdesc:a83c9735b06c1d6bd177cb0b8d04ce038"><td class="mdescLeft">&#160;</td><td class="mdescRight">服务端标志  <a href="class_service.html#a83c9735b06c1d6bd177cb0b8d04ce038">更多...</a><br /></td></tr>
<tr class="separator:a83c9735b06c1d6bd177cb0b8d04ce038"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:a62c2f070662951afc86079973d1e1852"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a62c2f070662951afc86079973d1e1852">delete_class_copy_operator</a> (<a class="el" href="class_service.html">Service</a>)</td></tr>
<tr class="separator:a62c2f070662951afc86079973d1e1852"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:a50e40c4461989310f8c03faf5e382e40"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_service.html#a50e40c4461989310f8c03faf5e382e40">ServerPool</a></td></tr>
<tr class="separator:a50e40c4461989310f8c03faf5e382e40"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>服务基类 </p>
<dl class="section remark"><dt>备注</dt><dd>暂时只支持ipv4协议，后续支持ipv6 </dd></dl>

<p class="definition">在文件 <a class="el" href="_service_8h_source.html">Service.h</a> 第 <a class="el" href="_service_8h_source.html#l00019">19</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="ae3887d7d725c94f207a479a10cce30bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3887d7d725c94f207a479a10cce30bd">&#9670;&nbsp;</a></span>Service()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a> Service::Service </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_service_8cpp_source.html">Service.cpp</a> 第 <a class="el" href="_service_8cpp_source.html#l00013">13</a> 行定义.</p>

</div>
</div>
<a id="af6c3577b59652ac817d1d76aaccee904"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6c3577b59652ac817d1d76aaccee904">&#9670;&nbsp;</a></span>~Service()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Service::~Service </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_service_8cpp_source.html">Service.cpp</a> 第 <a class="el" href="_service_8cpp_source.html#l00017">17</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="aceb078ac7bb78b45f21e0a3d2bf79735"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aceb078ac7bb78b45f21e0a3d2bf79735">&#9670;&nbsp;</a></span>AddClient()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Service::AddClient </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_client.html">Client</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>增加客户端 </p>

<p class="definition">在文件 <a class="el" href="_service_8cpp_source.html">Service.cpp</a> 第 <a class="el" href="_service_8cpp_source.html#l00049">49</a> 行定义.</p>

</div>
</div>
<a id="a26b720587403b9fe88c7b122ebab3553"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26b720587403b9fe88c7b122ebab3553">&#9670;&nbsp;</a></span>Clear()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Service::Clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>清空所有客户端 </p>

<p class="definition">在文件 <a class="el" href="_service_8cpp_source.html">Service.cpp</a> 第 <a class="el" href="_service_8cpp_source.html#l00038">38</a> 行定义.</p>

</div>
</div>
<a id="acad19cb7557fac6e504af4fb5c734d4e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acad19cb7557fac6e504af4fb5c734d4e">&#9670;&nbsp;</a></span>DealConnect()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> Service::DealConnect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_client.html">Client</a> *&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>处理连接 </p>

<p>在 <a class="el" href="class_server.html#afec0f8da7ecb6830cb903b87be79c26f">Server</a> , 以及 <a class="el" href="class_client_server.html#a17b41665a35c32ba39833c98e4ca99bd">ClientServer</a> 内被实现.</p>

</div>
</div>
<a id="a62c2f070662951afc86079973d1e1852"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62c2f070662951afc86079973d1e1852">&#9670;&nbsp;</a></span>delete_class_copy_operator()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Service::delete_class_copy_operator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_service.html">Service</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a3cac6e8d20e95f043d56d83e3ddd33bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3cac6e8d20e95f043d56d83e3ddd33bc">&#9670;&nbsp;</a></span>DeleteClient() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Service::DeleteClient </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_sock_tools_8h.html#ac7875a7f6984241a06892f7041b4d30a">SOCKIDEN</a>&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>删除客户端 </p>
<p>根据会话ID删除客户端 </p>

<p class="definition">在文件 <a class="el" href="_service_8cpp_source.html">Service.cpp</a> 第 <a class="el" href="_service_8cpp_source.html#l00028">28</a> 行定义.</p>

</div>
</div>
<a id="a36e6b17fa4ed3d5582a4d5bc8e6da4f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a36e6b17fa4ed3d5582a4d5bc8e6da4f4">&#9670;&nbsp;</a></span>DeleteClient() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> Service::DeleteClient </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_service_8cpp_source.html">Service.cpp</a> 第 <a class="el" href="_service_8cpp_source.html#l00043">43</a> 行定义.</p>

</div>
</div>
<a id="a46eb93cf78fbfeed368634a90d9775d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46eb93cf78fbfeed368634a90d9775d9">&#9670;&nbsp;</a></span>DeleteNullClient()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Service::DeleteNullClient </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_client.html">Client</a> *&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_service_8h_source.html">Service.h</a> 第 <a class="el" href="_service_8h_source.html#l00109">109</a> 行定义.</p>

</div>
</div>
<a id="a040c5f1db96aad100bb713db069bc19e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a040c5f1db96aad100bb713db069bc19e">&#9670;&nbsp;</a></span>GetClientIden()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string Service::GetClientIden </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_client.html">Client</a> *&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>生成客户端标志 </p>

<p class="definition">在文件 <a class="el" href="_service_8cpp_source.html">Service.cpp</a> 第 <a class="el" href="_service_8cpp_source.html#l00120">120</a> 行定义.</p>

</div>
</div>
<a id="a632a3bcb74f8fc331d37e55c50951d83"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a632a3bcb74f8fc331d37e55c50951d83">&#9670;&nbsp;</a></span>GetName()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* Service::GetName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>返回客户端名称 </p>

<p>在 <a class="el" href="class_client_server.html#a050830ae50d82c4b134e90b5d1993b42">ClientServer</a> , 以及 <a class="el" href="class_server.html#a97d9351a4f3b94d46bc353246c95123b">Server</a> 内被实现.</p>

</div>
</div>
<a id="ae091318f2a5a2708d1631670e8bce6c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae091318f2a5a2708d1631670e8bce6c0">&#9670;&nbsp;</a></span>GetServiceFlag()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string Service::GetServiceFlag </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取服务标志 </p>

<p class="definition">在文件 <a class="el" href="_service_8cpp_source.html">Service.cpp</a> 第 <a class="el" href="_service_8cpp_source.html#l00115">115</a> 行定义.</p>

</div>
</div>
<a id="ab4f45cb83a28907849da7897f7a30016"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4f45cb83a28907849da7897f7a30016">&#9670;&nbsp;</a></span>GetSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t Service::GetSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取客户端大小 </p>

<p class="definition">在文件 <a class="el" href="_service_8cpp_source.html">Service.cpp</a> 第 <a class="el" href="_service_8cpp_source.html#l00054">54</a> 行定义.</p>

</div>
</div>
<a id="a9ea329d8d3607adcd3e03a94a0585217"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ea329d8d3607adcd3e03a94a0585217">&#9670;&nbsp;</a></span>GetTcpService()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_c_basic_service.html">CBasicService</a>* Service::GetTcpService </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取tcp底层类指针 </p>

<p>在 <a class="el" href="class_server.html#af419749ec5a94748acbbaf4f8d9163f1">Server</a> , 以及 <a class="el" href="class_client_server.html#a3f88a8505fd02dba1337cd974a511f39">ClientServer</a> 内被实现.</p>

</div>
</div>
<a id="a2d41738423a6eafacc44af90ca6c6ef7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d41738423a6eafacc44af90ca6c6ef7">&#9670;&nbsp;</a></span>Init()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool Service::Init </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tcp_config.html">TcpConfig</a> &amp;&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>初始化工作 </p>

<p>在 <a class="el" href="class_server.html#a06de0cc7252d197cbf6f1fdb6887d6c1">Server</a> , 以及 <a class="el" href="class_client_server.html#a0042e91d55d5400b127e32be4e2500a7">ClientServer</a> 内被实现.</p>

</div>
</div>
<a id="a94ef51dae18339e99ea55a67c3b00451"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94ef51dae18339e99ea55a67c3b00451">&#9670;&nbsp;</a></span>IsExistClient()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Service::IsExistClient </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>iden</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>通过id, 查找客户端是否存在 </p>

<p class="definition">在文件 <a class="el" href="_service_8cpp_source.html">Service.cpp</a> 第 <a class="el" href="_service_8cpp_source.html#l00059">59</a> 行定义.</p>

</div>
</div>
<a id="a05c507629c3614ccbe433ea89fd0f985"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05c507629c3614ccbe433ea89fd0f985">&#9670;&nbsp;</a></span>IsServer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Service::IsServer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>返回是否为服务端的标志 </p>

<p class="definition">在文件 <a class="el" href="_service_8h_source.html">Service.h</a> 第 <a class="el" href="_service_8h_source.html#l00050">50</a> 行定义.</p>

</div>
</div>
<a id="a87a64eeb17b61e794c1651d2de93f49b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87a64eeb17b61e794c1651d2de93f49b">&#9670;&nbsp;</a></span>IsServiceFlag()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Service::IsServiceFlag </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>iden</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>通过客户端标志判断服务标志是否为此服务 </p>

<p class="definition">在文件 <a class="el" href="_service_8cpp_source.html">Service.cpp</a> 第 <a class="el" href="_service_8cpp_source.html#l00074">74</a> 行定义.</p>

</div>
</div>
<a id="ae7f2c04b1f26bcb86e59beb2f7dcbeed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7f2c04b1f26bcb86e59beb2f7dcbeed">&#9670;&nbsp;</a></span>NotifyExit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Service::NotifyExit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通知退出 </p>

<p>在 <a class="el" href="class_server.html#a2370cd5731a2c120dc705af3acbe46b8">Server</a> , 以及 <a class="el" href="class_client_server.html#aad971e40b6fd6447bba55ca992b0e309">ClientServer</a> 内被实现.</p>

</div>
</div>
<a id="a1f2080b05bc4a1a5642b7fba69d7f0d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f2080b05bc4a1a5642b7fba69d7f0d2">&#9670;&nbsp;</a></span>PopClient()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Service::PopClient </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_client.html">Client</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取一个客户端 </p>
<p>删除一个客户端并返回其值 </p>

<p class="definition">在文件 <a class="el" href="_service_8cpp_source.html">Service.cpp</a> 第 <a class="el" href="_service_8cpp_source.html#l00033">33</a> 行定义.</p>

</div>
</div>
<a id="a24501c6a89af8f6781ef96b423644780"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24501c6a89af8f6781ef96b423644780">&#9670;&nbsp;</a></span>Post()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Service::Post </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>(*)(void *)&#160;</td>
          <td class="paramname"><em>complete</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个用户操作 </p>

<p>在 <a class="el" href="class_server.html#ab44f4c14260fc07f2497fa270e7b45f2">Server</a> , 以及 <a class="el" href="class_client_server.html#acd4373ea16097009de3cda8d51e64719">ClientServer</a> 内被实现.</p>

</div>
</div>
<a id="a7f9f9d3c3033b32ce108509093a7ff08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f9f9d3c3033b32ce108509093a7ff08">&#9670;&nbsp;</a></span>PostConnect()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Service::PostConnect </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>addr</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td>
          <td class="paramname"><em>port</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递连接、接收请求 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">invoker</td><td>用户传递的数据 </td></tr>
    <tr><td class="paramname">addr</td><td>ip地址 </td></tr>
    <tr><td class="paramname">port</td><td>端口 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section remark"><dt>备注</dt><dd>当投递一个服务端接收时，参数将会被忽略 只有客户端投递连接，参数才会起作用； 若msg不为nullptr，则c为nullptr。 </dd></dl>

<p>在 <a class="el" href="class_server.html#a3513ac8eb75dac27c81720b64aa9b761">Server</a> , 以及 <a class="el" href="class_client_server.html#a1bb203df5c04d7b940092047e7f2668e">ClientServer</a> 内被实现.</p>

</div>
</div>
<a id="aad0c7b096b5dc39a0a763997f045c2d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad0c7b096b5dc39a0a763997f045c2d5">&#9670;&nbsp;</a></span>Run()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool Service::Run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="class_server.html#a7c31d308dd9b23132e9912352696ac26">Server</a> , 以及 <a class="el" href="class_client_server.html#a7fb112bc3fb44a2e2f3f8f466a6eb56e">ClientServer</a> 内被实现.</p>

</div>
</div>
<a id="aede679dc4ce20dbe8fc56d9998727ef5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aede679dc4ce20dbe8fc56d9998727ef5">&#9670;&nbsp;</a></span>SetServiceFlag()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Service::SetServiceFlag </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>flag</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置服务标志,只能为数字或者字母 </p>

<p class="definition">在文件 <a class="el" href="_service_8cpp_source.html">Service.cpp</a> 第 <a class="el" href="_service_8cpp_source.html#l00110">110</a> 行定义.</p>

</div>
</div>
<a id="a3a7a13a861535967242b96661e0b75ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a7a13a861535967242b96661e0b75ba">&#9670;&nbsp;</a></span>SetSocketOpt()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool Service::SetSocketOpt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_tcp_io_socket.html">CTcpIoSocket</a> *&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置套接口选项,若为服务端则设置监听套接字的选项，若为客户端则设置客户端的套接字选项 </p>

<p>在 <a class="el" href="class_server.html#ac43591a38a0fad67544d6b09d2604f29">Server</a> , 以及 <a class="el" href="class_client_server.html#a87b62b544a5886d983efa2b8f36329d8">ClientServer</a> 内被实现.</p>

</div>
</div>
<h2 class="groupheader">友元及相关函数文档</h2>
<a id="a50e40c4461989310f8c03faf5e382e40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50e40c4461989310f8c03faf5e382e40">&#9670;&nbsp;</a></span>ServerPool</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="class_server_pool.html">ServerPool</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_service_8h_source.html">Service.h</a> 第 <a class="el" href="_service_8h_source.html#l00112">112</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="ac215518825547a80c089e9166d4f5e72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac215518825547a80c089e9166d4f5e72">&#9670;&nbsp;</a></span>_config</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt;<a class="el" href="class_tcp_config.html">TcpConfig</a>&gt; Service::_config</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>配置文件 </p>

<p class="definition">在文件 <a class="el" href="_service_8h_source.html">Service.h</a> 第 <a class="el" href="_service_8h_source.html#l00114">114</a> 行定义.</p>

</div>
</div>
<a id="a83c9735b06c1d6bd177cb0b8d04ce038"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83c9735b06c1d6bd177cb0b8d04ce038">&#9670;&nbsp;</a></span>_isServer</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Service::_isServer</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>服务端标志 </p>

<p class="definition">在文件 <a class="el" href="_service_8h_source.html">Service.h</a> 第 <a class="el" href="_service_8h_source.html#l00116">116</a> 行定义.</p>

</div>
</div>
<a id="a5155a095380842a32c022fe9c9854ffd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5155a095380842a32c022fe9c9854ffd">&#9670;&nbsp;</a></span>_mgr</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_safe_map.html">CSafeMap</a>&lt;<a class="el" href="_sock_tools_8h.html#ac7875a7f6984241a06892f7041b4d30a">SOCKIDEN</a>, <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt;<a class="el" href="class_client.html">Client</a>&gt; &gt;* Service::_mgr</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>客户端管理 </p>

<p class="definition">在文件 <a class="el" href="_service_8h_source.html">Service.h</a> 第 <a class="el" href="_service_8h_source.html#l00115">115</a> 行定义.</p>

</div>
</div>
<a id="a307f7bf977f0a39c8675fb42bc204e36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a307f7bf977f0a39c8675fb42bc204e36">&#9670;&nbsp;</a></span>_serviceFlag</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_string_imp_8h.html#a2024a29cf6ecb0ef87f0bc2ef277a7e9">StringImp</a>&lt;std::string&gt; Service::_serviceFlag</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>服务前缀标志 </p>

<p class="definition">在文件 <a class="el" href="_service_8h_source.html">Service.h</a> 第 <a class="el" href="_service_8h_source.html#l00113">113</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/framework/tcp/framework/<a class="el" href="_service_8h_source.html">Service.h</a></li>
<li>H:/project/LibTools/src/framework/tcp/framework/<a class="el" href="_service_8cpp_source.html">Service.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
